/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nanosn.coffeemaker.application.commands;

import com.nanosn.coffeemaker.databaseproject.persistence.DatabaseJDBCConfiguration;
import com.nanosn.util.parsers.commandline.Command;

/**
 *
 * @author selkhateeb
 */
public class RunDerby implements Command {

    public void run(String[] args) throws Exception {
        DatabaseJDBCConfiguration conf = new DatabaseJDBCConfiguration();

        System.setProperty("ij.database", conf.getConnectionURL());
        org.apache.derby.tools.ij.main(new String[]{});
    }

    public String getHelp() {
        return "Runs the derby interactive console application";
    }
}
